/**
 * 获取校验的message
 * @param id
 */
import { formatMessage } from '@/utils/i18n-transform';

export const getValidateMessage = (id: string, noVailid?: boolean) => {
  return id ? formatMessage({
    id: noVailid ? id : `validate.${id}`
  }) : '';
  // return key ? formatMsg(noVailid ? key : `validate.${key}`) : '';
};



